package com.xingda.packing.minitor.dto;

import lombok.Data;

@Data
public class PkTaskUploadDto {
    private int layer;

    private int state;

    public String getLayerName() {
        if (layer == 0) {
            return "包装物";
        } else {
            return "第" + layer + "层";
        }
    }

    public String getStateName() {
        if (state == 1) {
            return "成功";
        } else if (state == 0) {
            return "失败";
        } else {
            return "未上传";
        }
    }
}
